#ifndef TIMER_WIN32_H
#define TIMER_WIN32_H
#include <QtGlobal>
#ifdef Q_OS_WIN
#include <Windows.h>

class Timer {
public:
    Timer();

    void start();
    // returns the number of seconds since the last call to delta()
    float delta();

    // returns the number of seconds since start()
    float absolute();

private:
    LARGE_INTEGER start_time;
    LARGE_INTEGER current_time;
    LARGE_INTEGER last_time;

    LARGE_INTEGER frequency;
    LARGE_INTEGER store;
};
#endif
#endif // TIMER_WIN32_H
